﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Detail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Page.Title = "我的购物清单";

        if (Session["user"] == null)
        {

        }

        else
        {
            if (!IsPostBack)
            {
                string sid = Request.QueryString.Get("sid");
                if (sid != null)
                {

                    DbAccess db = new DbAccess();
                    DataSet cList = db.GetDataSet("select * from OrderDetail where orderGuid='" + sid + "'");
                    GridView1.DataSource = cList.Tables[0].DefaultView;
                    GridView1.DataBind();
                }

            }


        }

    }
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {

    }
}
